<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
{#    {{ request.session }}<br/>#}
{#    {{ request.COOKIES }}#}
{% if request.session.user_info %}
    欢迎{{ request.session.user_info.username }}
    <p>
        <a href="user/logout">退出系统1</a>
    </p>
    <p>
        <a href="/note/all">进入我的笔记1</a>
    </p>
    {% else %}
        {% if request.COOKIES.user_info %}
            欢迎 {{ request.COOKIES.user_info.username }}
             <p>
        <a href="user/logout">退出系统2</a>
    </p>
    <p>
        <a href="/note/all">进入我的笔记2</a>
    </p>
        {% else %}
             <p>
                <a href="user/login">登录</a>
            </p>
            <p>
                <a href="user/reg">注册</a>
            </p>
        {% endif %}

{% endif %}
</body>
</html>